{
// НАСТРОЙКА БАРА
	"layer": "top", // Слой на котором расположен вайбар
	"position": "bottom", // Положение бара (top|bottom|left|right)
	"height": 30, // Высота бара
	"width": 1900, // Ширина бара
	"spacing": 4, // Отступы между модулями
	"margin-top": 7, // Отступ сверху

// МОДУЛИ
	"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
	"modules-center": ["sway/window"],
	"modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"],

// КНОПКИ ВОРКСПЕЙСОВ
	"sway/workspaces": {
		"disable-scroll": true,
		"all-outputs": true,
		"warp-on-scroll": false,
		"format": "{name}: {icon}",
		"format-icons": {
			"1": "",
			"2": "",
			"3": "",
			"4": "",
			"5": "",
			"urgent": "",
			"focused": "",
			"default": ""
		}
	},

// КАСТОМНОЕ МЕНЮ/ЛАУНЧЕР
	"custom/menu": {
	"format": "<span color=\"#f5f7fa\">{icon}</span>",
	"format-icons": {"default": ["󰣇"]},
	"on-click": "set $menu dmenu_path | wofi --show drun -I -c ~/.config/sway/themes/swayfx_gawr_gura/wofi/config -s ~/.config/sway/themes/swayfx_gawr_gura/wofi/style.css | xargs swaymsg exec --",
	"escape": true,
	"tooltip": false
	},

// ЧАСЫ
	"clock": {
	"format": "<span color=\"#202020\"></span> {:%H:%M %p}",
	"tooltip": false
	},

// ПОГОДА
	"custom/weather": {
	"format": "{}",
	"interval": 10,
	"exec": "~/.config/sway/themes/swayfx_gawr_gura/scripts/weather.sh",
	"tooltip": false
	},


// ТРЕЙ    
	"tray": {
	"icon-size": 16,
	"spacing": 10,
	"tooltip": false
	},


// CMUS
	"custom/cmus": {
	"format": " {}",
	//"max-length": 25,
	"interval": 1,
	"exec": "cmus-remote -C \"format_print '%F'\"",
	"exec-if": "pgrep cmus",
	"on-click": "cmus-remote -u",
	"on-scroll-up": "cmus-remote --next",
	"on-scroll-down": "cmus-remote --prev",
	"escape": true,
	"tooltip": false
	},


// ПУЛЬСА    
	"pulseaudio": {
	"scroll-step": 5,
	"format": "{icon} {volume}%",
	"format-bluetooth": "{volume}% {icon} {format_source}",
	"format-bluetooth-muted": " {icon} {format_source}",
	"format-muted": " {format_source}",
	"format-source": "{volume}% ",
	"format-source-muted": "",
	"format-icons": {
		"headphone": "",
		"hands-free": "",
		"headset": "",
		"phone": "",
		"portable": "",
		"car": "",
		"default": ["", "", ""]
	},
	"on-click": "pavucontrol",
	"tooltip": false
	},


// ЗАГРУЗКА ПРОЦА
	"cpu": {
	"format": " {usage}%",
	"tooltip": false
	},

// ЗАГРУЗКА ПАМЯТИ
	"memory": {
	"format": " {}%"
	},


// ПОВЕРМЕНЮ
	"custom/power": {
	"format": "<span color=\"#f5f7fa\">{icon}</span>",
	"format-icons": {"default": [""]},
	"on-click": "~/.config/sway/themes/swayfx_gawr_gura/scripts/power.sh",
},


// БЛОКИРОВКА КЛАВИАТУРЫ
	"keyboard-state": {
		"numlock": true,
		"capslock": true,
		"format": "{name} {icon}",
		"format-icons": {
			"locked": "",
			"unlocked": ""
		}
	},


// ОТОБРАЖЕНИЕ РЕЖИМА SWAY 
	"sway/mode": {
		"format": "<span style=\"italic\">{}</span>"
	},


// СКРАЧПАД
	"sway/scratchpad": {
		"format": "{icon} {count}",
		"show-empty": false,
		"format-icons": ["", ""],
		"tooltip": true,
		"tooltip-format": "{app}: {title}"
	},


// МДП
	"mpd": {
		"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
		"format-disconnected": "Disconnected ",
		"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
		"unknown-tag": "N/A",
		"interval": 2,
		"consume-icons": {
			"on": " "
		},
		"random-icons": {
			"off": "<span color=\"#f53c3c\"></span> ",
			"on": " "
		},
		"repeat-icons": {
			"on": " "
		},
		"single-icons": {
			"on": "1 "
		},
		"state-icons": {
			"paused": "",
			"playing": ""
		},
		"tooltip-format": "MPD (connected)",
		"tooltip-format-disconnected": "MPD (disconnected)"
	},


// БЛОКИРОВКА ЭКРАНА
	"idle_inhibitor": {
		"format": "{icon}",
		"format-icons": {
			"activated": "",
			"deactivated": ""
		}
	},


// ТЕМПЕРАТУРА
"temperature": {
		// "thermal-zone": 2,
		// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
		"critical-threshold": 80,
		// "format-critical": "{temperatureC}°C {icon}",
		"format": "{temperatureC}°C {icon}",
		"format-icons": ["", "", ""]
	},


// ЯРКОСТЬ ЭКРАНА
	"backlight": {
		// "device": "acpi_video1",
		"format": "{percent}% {icon}",
		"format-icons": ["", "", "", "", "", "", "", "", ""]
    },


// БАТАРЕЯ
	"battery": {
		"states": {
			// "good": 95,
			"warning": 30,
			"critical": 15
		},
		"format": "{capacity}% {icon}",
		"format-charging": "{capacity}% ",
		"format-plugged": "{capacity}% ",
		"format-alt": "{time} {icon}",
		// "format-good": "", // An empty format will hide the module
		// "format-full": "",
		"format-icons": ["", "", "", "", ""]
	},


// БАТАРЕЯ 2
	"battery#bat2": {
		"bat": "BAT2"
	},


// СЕТЬ
	"network": {
		// "interface": "wlp2*", // (Optional) To force the use of this interface
		"format-wifi": "{essid} ({signalStrength}%) ",
		"format-ethernet": "{ipaddr}/{cidr} ",
		"tooltip-format": "{ifname} via {gwaddr} ",
		"format-linked": "{ifname} (No IP) ",
		"format-disconnected": "Disconnected ⚠",
		"format-alt": "{ifname}: {ipaddr}/{cidr}"
    },


// КАСТОМНЫЙ МОДУЛЬ (Типа так можно делать)
	"custom/media": {
		"format": "{icon} {}",
		"return-type": "json",
		"max-length": 40,
		"format-icons": {
			"spotify": "",
			"default": "🎜"
		},
		"escape": true,
		"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
		// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
    }
}

